# The following lines were added by compinstall

#[ -f /etc/DIR_COLORS ] && eval $(dircolors -b /etc/DIR_COLORS)
eval $(dircolors -b)
export ZLSCOLORS="${LS_COLORS}"
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}

zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle ':completion:*' expand prefix
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-suffixes true
zstyle :compinstall filename '/home/bucunzai/.zshrc'

#autoload -Uz compinit
#compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
#HISTFILE=~/.histfile
#HISTSIZE=3000
#SAVEHIST=3000
bindkey -e
setopt appendhistory autocd extendedglob nomatch
# End of lines configured by zsh-newuser-install
#
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh

# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
#export ZSH_THEME="bira"
export ZSH_THEME="bucunzai"

# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"

# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="true"

# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git ruby deb debian)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...
alias ls='ls --color=auto'
alias grep='grep --color=auto'

# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias lm='ls -al | more'

alias nano="nano -w"
alias pingc='ping -c 5'
alias wget='wget -c'
alias sd='sdcv'
alias e='vim'
alias se='sudo vim'
alias free='free -m'
alias df='df -h'
alias du='du -h'
alias h='history |tail -n 20'
alias fz='fortune-zh'

# security
alias rm='rm -i'
alias cp='nocorrect cp -i'
alias mv='nocorrect mv -i'
alias mkdir='nocorrect mkdir'

# system alias
alias update="sudo aptitude update && sudo aptitude dist-upgrade"
alias chzh="export LANG=zh_CN.UTF-8;export LANGUAGE=zh_CN:zh"

# loads RVM if file is not zero size
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source ~/.rvm/scripts/rvm

# hash cd ~xxx
hash -d www="/usr/share/nginx/www"
hash -d apt="/etc/apt/"

# locale settings
#export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US:en

